import { mapMenuToRoutes } from "@/utils/mapRouteToMenu"
import router from "@/router"

export async function initialRouter(menuList: any[]) {
	const routes = mapMenuToRoutes(menuList)
	console.log("routes", routes)
	for (const route in routes) {
		router.addRoute("main", routes[route])
	}
}
